package lession2_2_3;

public class Animal {
	//desc实例变量保存对象toString方法的返回值
	private String desc;
	
	public Animal() {
		//调用getDesc()方法初始化desc实例变量
		this.desc = getDesc();
	}

	public String getDesc() {
		return "Animal";
	}

	public String toString() {
		return desc;
	}
	
	
}
